package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Status entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_EMAIL_STATUS")
public class EmailStatus implements java.io.Serializable {

	// Fields

	private Long id;
	private String threadname;
	private String status;

	// Constructors

	/** default constructor */
	public EmailStatus() {
	}

	/** full constructor */
	public EmailStatus(String threadname, String status) {
		this.threadname = threadname;
		this.status = status;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "THREADNAME", length = 100)
	public String getThreadname() {
		return this.threadname;
	}

	public void setThreadname(String threadname) {
		this.threadname = threadname;
	}

	@Column(name = "STATUS", length = 10)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}